#ifndef UTILITY_H_INCLUDED
#define UTILITY_H_INCLUDED

#include <string>
#include <iostream>
#include <list>
#include <map>
#include <fstream>
#include <stdio.h>


using namespace std;

class utility
{
	public:
		utility();
		~utility();
		//string operating.
		static string string2upper(string);
		static string string2lower(string);
		static string int2string(int);
		static int string2int(string);
		static string trim(string);
		static string long2string(long);
		static void replace(string*, char chr='\t');
		static void replace(string*, char, char);
		static void replace(string*, string, string);
		static void splistString(string,char,string*,string*, bool upperKey=true);
		static string getRandGuestName();
		static string getRandGuestName(int);
	private:
	protected:
};


#endif // UTILITY_H_INCLUDED
